package com.yungu.swift.common.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.service.BaseService;
import com.yungu.swift.common.model.dto.CommonArticleDto;
import com.yungu.swift.common.model.param.AdminArticleParam;

import java.util.Map;


/**
 * CommonArticleService
 **/

public interface CommonArticleService extends BaseService<CommonArticleDto> {

    /**
     * 文章新增或更新
     *
     * @param articleParam
     * @return
     */
    ResponseData<Boolean> saveOrUpdate(AdminArticleParam articleParam);

    /**
     * 访问统计计数
     *
     * @param uuid 文章的uuid
     * @return
     */
    ResponseData<Boolean> visitCount(String uuid);

    /**
     * 获取相关协议
     *
     * @param identity 1乘客 2司机
     * @return
     */
    ResponseData<Map<String, Object>> getPrivacyPolicy(Integer identity);

}